package guitar;

import params.*;

public class GuitarSpec {
    private Builder builder;
    private String model;
    private Type type;
    private Wood backWood;
    private Wood topWood;
    private int numStrings;

    public GuitarSpec (Builder builder, String model, Type type, int numStrings, Wood bw, Wood tw) {
        this.builder = builder;
        this.model = model;
        this.type = type;
        this.numStrings = numStrings;
        this.backWood = bw;
        this.topWood = tw;
    }
    
    public Builder getBuilder() {
        return builder;
    }

    public String getModel() {
        return model;
    }

    public Type getType() {
        return type;
    }

    public Wood getBackWood() {
        return backWood;
    }

    public Wood getTopWood() {
        return topWood;
    }

    public int getNumStrings() {
        return numStrings;
    }

    public boolean equals(GuitarSpec s) {
        if (!builder.equals(s.getBuilder()))
            return false;
        if (!model.toLowerCase().equals(s.getModel().toLowerCase() ) )
            return false;
        if (!type.equals(s.getType()))
            return false;
        if (!backWood.equals(s.getBackWood()))
            return false;
        if (!topWood.equals(s.getTopWood()))
            return false;
        return true;
    }
}
